const webpack = require('webpack')
const path = require('path')

const resolve = dir => {
    return path.join(__dirname, dir)
}
module.exports = {
    publicPath: process.env.NODE_ENV === 'production' || process.env.NODE_ENV === 'test' ?
        '' : '/',
    chainWebpack: config => {
        config.resolve.alias
            .set('@', resolve('src'))
        config
            .plugin('html')
            .tap(args => {
                args[0].title = ''
                return args
            })
    },
    productionSourceMap: false,



}